package com.pet.mapper;


import com.pet.entity.WechatUser;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from pet_manage_system.employee where id = #{openid}")
    WechatUser getByOpenid(String openid);


    void insert(WechatUser wechatUser);

    /**
     * 删除用户信息
     * @param userId
     */
    @Delete("delete from pet_manage_system.user_information where id = #{userId}")
    void deleteUserInformation(Integer userId);

    //@Select("select * from user where id = #{userId}")
   // WechatUser getById(Long userId);
}
